I built this package for compatibility with chess.com, so contact me if you want me to use it for other sources. Everything required for this demo can be found in my chessDoodles workspace
1 2 3 4 5
# clear workspace rm(list=ls())
# load workspace load("chessDoodles.RData")
A link to a chess.com game always ends with a game ID. Here are two examples:
These games can be viewed publicly, but scraping the pgn for each requires a username and password. I think it’s easiest to embed the password into the link with the format “http://username:password@chess.com/…”.
1 2 3 4 5 6 7 8 9 10 11 12 13
# store username and password Username <- "thinkboolean" Password <- "blogChess"# counting on you not to abuse this; feel free to contact me for details